﻿using System;
using System.Collections.Generic;
using SuppKids.Core.Domain;
using SuppKids.Core.Repository;
using SuppKids.Licensing.Common;

namespace SuppKids.Core.Services
{
    public class DailyMenuService:BaseService<DailyMenu>
    {
        public DailyMenuService(DailyMenuRepository repository)
            : base(repository)
        {
            this.Repository = repository;
        }

        protected new DailyMenuRepository Repository { get; set; }
        public DailyMenu GetDailyMenu(DayOfWeek dayOfWeek, WeekNumber weekNumber, MenuType menuType, MealType? mealType = null)
        {
            return this.Repository.GetDailyMenu(dayOfWeek, weekNumber, menuType, mealType);
        }

        public IEnumerable<DailyMenu> GetAll(DayOfWeek dayOfWeek, WeekNumber weekNumber, MenuType menuType, MealType? mealType = null)
        {
            return this.Repository.GetAll(dayOfWeek, weekNumber, menuType, mealType);
        }
    }
}